package com.dindang.propertyfee.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.dindang.propertyfee.mvp.contract.FeeListContract;
import com.dindang.propertyfee.mvp.model.FeeListModel;


@Module
public class FeeListModule {
    private FeeListContract.View view;

    /**
     * 构建FeeListModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public FeeListModule(FeeListContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    FeeListContract.View provideFeeListView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    FeeListContract.Model provideFeeListModel(FeeListModel model) {
        return model;
    }
}